<?php
    $manageProfileUrl = array(
        Lua_Constant_General::PARAM_CONTROLLER => "user",
        Lua_Constant_General::PARAM_ACTION => "profile"
    );
	function displayEcontact($pageContext, $etype) {
		if(isset($pageContext->loginUser['econtact'][$etype])) {
			echo $pageContext->loginUser['econtact'][$etype];
		}
	} 
?>
            	<div class=" fl w190">
                    <div class="block_white pd_all_s">
                        <div class="fix158">
                        <div class="bder_bot">
                        <div class="tooltip">
	                        <div class="tt_txt">
	                        <?php 
	                        if (isset($this->loginUser['status']) && false) {
								//echo $this->loginUser['status'];
								echo 'Lấy tt ở đâu? (ko phải user.status nha)';
							} else {
								echo '<div class="link_blue"><a href="'.$this->url($manageProfileUrl).'">Cập nhật status</a></div>';
							}
							?>
	                        </div>
                        </div>
                        <div class="position">
                        <div class="avatar">
                        	<a href="#">
                        	<?php 
                        		if (isset($this->loginUser['avatar_photo'])) {
									echo '<img src="'.$this->loginUser['avatar_photo'].'" width="90px" height="90px"/>';
								} else {
									echo '<div class="link_blue"><a href="'.$this->url($manageProfileUrl).'">Cập nhật avatar</a></div>';
								}
							?>
							</a>
                        </div>
                        <div class="icon01"><a href="<?php echo $this->url($manageProfileUrl);?>"><img src="images/ico03.png" /></a></div>
                        </div>
                        <div class="name">PANDA</div>
                        </div>
                        <div class="bder_bot">
                            <div class="fix04">
                                <div class="title">Thông tin</div>
                                <?php 
                                if (isset($this->loginUser['self_introduce']) && trim($this->loginUser['self_introduce']) != "") {
									echo $this->loginUser['self_introduce'];
								} else {
									echo '<div class="link_blue"><a href="'.$this->url($manageProfileUrl).'">Cập nhật thông tin</a></div>';
								}
								?>
                            </div>
                        </div>
                        <div class="bder_bot">
                            <div class="fix04">
                                <div class="title">YÊU THÍCH</div>
                                <ul>
                                    <li>Đồ Họa</li>
                                    <li>Mỹ Thuật</li>
                                    <li>Mỹ Thuật Số</li>
                                </ul>
                            </div>
                        </div>
                        <div class="bder_bot">
                            <div class="fix04">
                                <div class="title">LIÊN HỆ</div>
                                <div class="icon02">
                                    <a href="<?php displayEcontact($this, 'YAHOO');?>"><img src="images/ico_an_s.png" /></a>
                                    <a href="<?php displayEcontact($this, 'FACEBOOK');?>"><img src="images/ico_fb_s.png" /></a>
                                    <a href="<?php displayEcontact($this, 'TIWTTER');?>"><img src="images/ico_tw_s.png" /></a>
                                    <a href="mailto:<?php displayEcontact($this, 'EMAIL');?>"><img src="images/ico_email_s.png" /></a>
                                </div>
                            </div>
                        </div>
                        <div class="bder_bot">
                            <div class="fix04">
                                <div class="title">BÌNH LUẬN</div>
                                <div class="ofh">
                                <div class="avatar_s">
                                    <a href="#"><img src="images/avatar.png" /></a>
                                    <a href="#"><img src="images/avatar.png" /></a>
                                    <a href="#"><img src="images/avatar.png" /></a>
                                    <a href="#"><img src="images/avatar.png" /></a>
                                    <a href="#"><img src="images/avatar.png" /></a>
                                    <a href="#"><img src="images/avatar.png" /></a>
                                    <a href="#"><img src="images/avatar.png" /></a>
                                    <a href="#"><img src="images/avatar.png" /></a>
                                </div>
                                <div class="paging_arrow">
                                    <ul>
                                        <li class="fl"><a href="#" class="prev">prev</a></li>
                                        <li class="fr"><a href="#" class="next">next</a></li>
                                    </ul>
                                </div>
                                </div>
                            </div>
                        </div>
                        </div>
                    
                    </div>
                    <div class="block_white pd_all_s">
                    	<div class="fix158">
                        	<div class="fix04 pd_tb_m">
                                <div class="title">THỐNG KÊ</div>
                                <div class="statistics">
                                	<div class="ofh">
                                    	<span class="fl">Số lượt xem</span><span class="fr">1356</span>
                                    </div>
                                    <div class="ofh">    
                                        <span class="fl">Số lần poo</span><span class="fr">56</span>
                                        </div>
                                    <div class="ofh">
                                        <span class="fl">Số tác phẩm</span><span class="fr">54</span>
                                        </div>
                                    <div class="ofh">
                                        <span class="fl">Bình luận</span><span class="fr">234</span>
                                        </div>
                                    <div class="ofh">
                                        <span class="fl">Thành viên từ:</span><span class="fr">16/04/2010</span>
                                        </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class=" fr w420">
            	<div class="block_white pd_all_s">
                	<div class="type">
                    	<ul>
                        	<li><a href="#">Hôm nay</a>\\</li>
                            <li><a href="#">Xem nhiều</a>\\</li>
                            <li class="active">Graphic</li>
                        </ul>
                    </div>
                    <div class="box_graphic1">
                    	<div class="graphic fl">
                        	<div class="bg_graphic">
                            	<div class="thumb"><a href="#"><img src="images/thumb.png" /></a></div>
                                <div class="title"><h4><a href="#">Tivi man hinh phang<br />model: XYZ</a></h4></div>
                            </div>
                            <div class="comment">
                            	<div class="blue_color fl">Basana</div>
                                <div class="fix01 fr">
                                	<ul>
                                    	<li>5 bình luận</li>
                                        <li>/</li>
                                        <li><span><img src="images/ico01.png" /></span>10</li>
                                    </ul>
                                </div>
                            <div class="fix02 gray_color font-s textright clr">Design // Website</div>
                            </div>
                        </div>
                        <div class="graphic fl">
                        	<div class="bg_graphic">
                            	<div class="thumb"><a href="#"><img src="images/thumb.png" /></a></div>
                                <div class="title"><h4><a href="#">Tivi man hinh phang<br />model: XYZ</a></h4></div>
                            </div>
                            <div class="comment">
                            	<div class="blue_color fl">Basana</div>
                                <div class="fix01 fr">
                                	<ul>
                                    	<li>5 bình luận</li>
                                        <li>/</li>
                                        <li><span><img src="images/ico01.png" /></span>10</li>
                                    </ul>
                                </div>
                            <div class="fix02 gray_color font-s textright clr">Design // Website</div>
                            </div>
                        </div>
                        <div class="graphic fl">
                        	<div class="bg_graphic">
                            	<div class="thumb"><a href="#"><img src="images/thumb.png" /></a></div>
                                <div class="title"><h4><a href="#">Tivi man hinh phang<br />model: XYZ</a></h4></div>
                            </div>
                            <div class="comment">
                            	<div class="blue_color fl">Basana</div>
                                <div class="fix01 fr">
                                	<ul>
                                    	<li>5 bình luận</li>
                                        <li>/</li>
                                        <li><span><img src="images/ico01.png" /></span>10</li>
                                    </ul>
                                </div>
                            <div class="fix02 gray_color font-s textright clr">Design // Website</div>
                            </div>
                        </div>
                        <div class="graphic fl">
                        	<div class="bg_graphic">
                            	<div class="thumb"><a href="#"><img src="images/thumb.png" /></a></div>
                                <div class="title"><h4><a href="#">Tivi man hinh phang<br />model: XYZ</a></h4></div>
                            </div>
                            <div class="comment">
                            	<div class="blue_color fl">Basana</div>
                                <div class="fix01 fr">
                                	<ul>
                                    	<li>5 bình luận</li>
                                        <li>/</li>
                                        <li><span><img src="images/ico01.png" /></span>10</li>
                                    </ul>
                                </div>
                            <div class="fix02 gray_color font-s textright clr">Design // Website</div>
                            </div>
                        </div>
                    </div>
                    <div class="fix03">
                        <div class="rating">
                            <ul>
                            	<li style=" display:none;"><a href="#">Prev</a></li>
                                <li class="active"><span>1</span>|</li>
                                <li><a href="#">2</a>|</li>
                                <li><a href="#">3</a>|</li>
                                <li><a href="#">4</a>|</li>
                                <li><a href="#">5</a>|</li>
                                <li><a href="#">Next</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="block_white pd_all_m">
                	<div class="title_comment"><img src="images/ico05.png" /></div>
                    <div class="box_cm_list">
                    	<div class="avatar_cm"><img src="images/avatar.png" /></div>
                        <div class="comment_list">
                        	<a href="#">Daniel Mendez</a>, 5:13am on Sep 6th, 2011
                            <p>Từ ngày 5/9/2011, Viettel chính thức cung cấp dịch vụ Quản lý cuộc gọi dành cho tất cả các thuê bao di động của nhà mạng này trên toàn quốc..</p>
                        </div>
                        <div class="btn_close"><a href="#"></a></div>
                    </div>
                    <div class="fix06">
                        <div class="rating">
                            <ul>
                            	<li style=" display:none;"><a href="#">Prev</a></li>
                                <li class="active"><span>1</span>|</li>
                                <li><a href="#">2</a>|</li>
                                <li><a href="#">3</a>|</li>
                                <li><a href="#">4</a>|</li>
                                <li><a href="#">5</a>|</li>
                                <li><a href="#">Next</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="">
                    	
                        	<div class="ofh">
                            <form action="" method="get">
                            <div class="fix07 fl">
                            	<div class="fix_textarea"><textarea name="" cols="" rows="" class="textarea"></textarea></div>
                                <div class="txt01">255 characters left</div>
                                
                            </div>
                            <div class="fix08 fl">
                            	<div class="fix_psi01">
                            		<div class="button_gray"><a href="#">BÌNH LUẬN</a></div>
                                </div>
                            </div>
                            </form>
                            </div>
                        
                    </div>
                </div>
                </div>
